home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.sprintlink.net!news1!news
- From: rclark@iquest.net (Robert B. Clark)
- Subject: Re: unique id for a string
- X-Nntp-Posting-Host: ind-004-236-169.iquest.net
- Message-ID: <3129dd39.961626@news.iquest.net>
- Followup-To: poster
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Internet, Inc.
- X-Newsreader: Forte Agent .99d/16.182
- References: <1996Feb16.175601.114182@kuhub.cc.ukans.edu>
- Date: Tue, 20 Feb 1996 15:45:12 GMT
-
- On 16 Feb 96 17:56:01 CST, anh@kuhub.cc.ukans.edu wrote:
-
- >HELLO = H * 26^4 + E * 26 ^3 + L * 26^2 + L * 26^1 + E * 26^0
- >
- >But the id is way too big. I need something that fits within a 32-bits int
- >or a 64-bits long.
-
- You're thinking way too hard, perhaps. Look up the algorithm for CRCs
- (cyclic redundancy checks/codes) in Snippets or most any other popular
- programmer's reference.
- --
- Robert B. Clark <rclark@iquest.net>
- "Be wary of strong spirits. It can make you shoot at tax collectors...
- and miss." --RAH
-